var initFoodOrderInfoSearchPage = function(){

};

var getFoodOrderInfoSearchParams = function(){
	var foodorderinfoBean = {};
	var temp;
	temp = jQuery('#userIdSearcher').val();
	if(temp){
		foodorderinfoBean.userId = temp;
	}
	temp = jQuery('#areaIdSearcher').val();
	if(temp){
		foodorderinfoBean.areaId = temp;
	}
	temp = jQuery('#shopIdSearcher').val();
	if(temp){
		foodorderinfoBean.shopId = temp;
	}
	temp = jQuery('#foodIdSearcher').val();
	if(temp){
		foodorderinfoBean.foodId = temp;
	}
	temp = jQuery('#numSearcher').val();
	if(temp){
		foodorderinfoBean.num = temp;
	}
	temp = jQuery('#onePriceSearcher').val();
	if(temp){
		foodorderinfoBean.onePrice = temp;
	}
	temp = jQuery('#allPriceSearcher').val();
	if(temp){
		foodorderinfoBean.allPrice = temp;
	}
	temp = jQuery('#orderTimeBegin').val();
	if(temp){
		foodorderinfoBean.orderTimeBegin =  new Date(Date.parse((temp+":00").replace(/-/g,   "/")));
	}
	temp = jQuery('#orderTimeEnd').val();
	if(temp){
		foodorderinfoBean.orderTimeEnd =  new Date(Date.parse((temp+":00").replace(/-/g,   "/")));
	}
	temp = jQuery('#registTimeBegin').val();
	if(temp){
		foodorderinfoBean.registTimeBegin =  new Date(Date.parse((temp+":00").replace(/-/g,   "/")));
	}
	temp = jQuery('#registTimeEnd').val();
	if(temp){
		foodorderinfoBean.registTimeEnd =  new Date(Date.parse((temp+":00").replace(/-/g,   "/")));
	}
	temp = jQuery('#stateSearcher').val();
	if(temp){
		foodorderinfoBean.state = temp;
	}
	temp = jQuery('#markSearcher').val();
	if(temp){
		foodorderinfoBean.mark = temp;
	}
	temp = jQuery('#payStateSearcher').val();
	if(temp){
		foodorderinfoBean.payState = temp;
	}
	temp = jQuery('#payTypeSearcher').val();
	if(temp){
		foodorderinfoBean.payType = temp;
	}
	return foodorderinfoBean;
}

jQuery(function(){
	initFoodOrderInfoSearchPage();
	jQuery('#searchFoodOrderInfo').click(function(){
		foodorderinfoManager.loadServerData(getFoodOrderInfoSearchParams());
	});
});


